package com.victor9ac.mashup.elasticsearch.tasks;

import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.SearchHits;

public class ElasticSearchCheckOperation {

	public boolean hasResults(SearchResponse searchResponse){
		SearchHits hits = searchResponse.getHits();
		return  hits.getTotalHits() > 0;		
	}
	
}
